import './nav.css'
import render from './nav.art'
import {URL,LAYOUT_ID} from './config'
import {getData,getDelayed} from 'api/getData'
//nav接口  https://www.imooc.com/api/mall-wepApp/index/nav
getData(URL).then
(data=>{
    document.getElementById(LAYOUT_ID).innerHTML=render({
        items:data
    })
})